<?php

class Application_Form_Contactos extends Sgit_Form
{

    public function init_form()
    {
         $request = Zend_Controller_Front::getInstance()->getRequest();
         $id=$request->getParam('id');
         
         
         $contacto=new Zend_Form_Element_Text('contacto');
         $contacto->setLabel('Nombre')->setRequired()
                ->addFilter('StringTrim');
         $this->addElement($contacto);  
         
        
         $empresa=new Zend_Form_Element_Text('empresa');
         $empresa->setLabel('Empresa')->setRequired()
                ->addFilter('StringTrim');
         $this->addElement($empresa);  
         
         
         $cargo=new Zend_Form_Element_Text('cargo');
         $cargo->setLabel('Cargo')->setRequired()
                ->addFilter('StringTrim');
         $this->addElement($cargo);  
         
         $fijo=new Zend_Form_Element_Text('fijo');
         $fijo->setLabel('Teléfono')
                ->addFilter('StringTrim');
         $this->addElement($fijo);  
         
         $movil=new Zend_Form_Element_Text('movil');
         $movil->setLabel('Movil')
                ->addFilter('StringTrim');
         $this->addElement($movil); 
         
          
         $email=new Zend_Form_Element_Text('email');
         $email->setLabel('Email')
                ->addFilter('StringTrim')
                ->addValidator('EmailAddress');
         $this->addElement($email); 
         
         
         $id_zona=new Sgit_Form_Element_Select_Datacenter('id_zona');
         $id_zona->setLabel('Datacenter');
         $this->addElement($id_zona); 
         

         $this->setElementDecorators(array(
		    'ViewHelper',
		   'Errors',
		    array(array('data' => 'HtmlTag'),	array('tag' => 'td', 'class' => 'element')   ),
		    array('Label', array('tag' => 'td')),
		    array(array('row' => 'HtmlTag'), array('tag' => 'tr')),
	     ));
       
       
   

        
    }
}
